{% extends "base_site.html" %}
{% block content %}
<h3>Browser Pie Chart</h3>
<img src="http://chart.apis.google.com/chart?chs=500x150&amp;chd=t:{{browsers_rates|join:","}}&amp;cht=p3&amp;chl={{browsers|join:"|"}}"
	alt="Browser Pie Chart" />

<h3>OS Pie Chart</h3>
<img src="http://chart.apis.google.com/chart?chf=bg,s,ffffff&amp;chs=500x150&amp;chd=t:{{os_rates|join:","}}&amp;cht=p3&amp;chl={{os_names|join:"|"}}"
	alt="OS Pie Chart" />

<h3>Visit Info Record</h3>
{% if records %}
{% for r in records %}
<p>
Url: <a href="{{r.uri}}">{{r.uri}}</a><br />
Referer: <a href="{{r.referer}}">{{r.referer}}</a><br />
Method: <span class="green">{{r.method}}</span><br />
User-Agent: <span class="green">{{r.user_agent}}</span><br />
OS: <span class="green">{{r.os}}</span><br />
Browser: <span class="green">{{r.browser}}</span><br />
User: <span class="green">{{r.user}}</span><br />
IP: <span class="green">{{r.ip}}</span><br />
Accept: <span class="green">{{r.accept}}</span><br />
Accept-Language: <span class="green">{{r.accept_language}}</span><br />
Accept-Charset: <span class="green">{{r.accept_charset}}</span><br />
Response Status: <span class="green">{{r.response_status}}</span><br />
</p>
<p class="align-right postmeta">
	<span class="date">{{r.date|date:"l, j N Y H:i:s"}} GMT</span>
</p>
{% endfor %}
{% else %}
<p>No records.</p>
{% endif %}

{% endblock %}